package org.yq.grame;

public enum FXEnum {

	UP(1),DOWN(2),LEFT(3),RIGHT(4);
	
	private int value = 0;

    private FXEnum(int value) {    
        this.value = value;
    }

    public static FXEnum valueOf(int value) {   
        switch (value) {
        case 1:
            return UP;
        case 2:
            return DOWN;
        case 3:
            return LEFT;
        case 4:
            return RIGHT;
        default:
            return null;
        }
    }

    public int value() {
        return this.value;
    }
}
